home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
u_man
/
cat1
/
ftnmgen.z
/
ftnmgen
Wrap
Text File
|
1998-10-30
|
5KB
|
119 lines
FTNMGEN(1) Last changed: 7-23-97
NNAAMMEE
ffttnnmmggeenn - Invokes the Fortran makefile generator
SSYYNNOOPPSSIISS
ffttnnmmggeenn [--aa] [--cc _c_o_m_p_i_l_e_r] [--ff _f_l_a_g_s] [--mm _m_a_k_e_f_i_l_e] [--oo _c_o_m_m_a_n_d__n_a_m_e]
_f_i_l_e_s
IIMMPPLLEEMMEENNTTAATTIIOONN
UNICOS, UNICOS/mk, and IRIX systems
DDEESSCCRRIIPPTTIIOONN
The ffttnnmmggeenn utility splits out all Fortran subroutines from _f_i_l_e_s by
using the ffttnnsspplliitt(1) utility and produces a makefile that may be used
to compile and load a program. Optionally, by using the --aa option,
ffttnnmmggeenn can create a file-based makefile, the creation of which does
not use ffttnnsspplliitt to split the files. The ffttnnmmggeenn utility inserts
dependency rules for include files and module usage. See the EXAMPLES
section of this man page for an sample makefile that illustrates these
rules.
The ffttnnmmggeenn utility accepts the following options:
--aa Creates a file-based makefile that does not use
ffttnnsspplliitt to split the source file.
--cc _c_o_m_p_i_l_e_r Specifies the Fortran compiling system used to
convert the ..ff files to ..oo files (ff9900 by default)
and link them to form an executable file.
--ff _f_l_a_g_s Specifies options to the Fortran compiling system.
Enclose the argument specifying the option(s) in
single quotation marks.
--mm _m_a_k_e_f_i_l_e Specifies the name of the makefile produced by the
ffttnnmmggeenn utility (mmaakkeeffiillee by default).
--oo _c_o_m_m_a_n_d__n_a_m_e Specifies the resultant executable file (aa..oouutt by
default).
_n_a_m_e_s Specifies the names of input files.
Makefiles created by ffttnnmmggeenn have the following targets:
aallll Creates the executable file _c_o_m_m_a_n_d__n_a_m_e (default
rule).
_c_o_m_m_a_n_d__n_a_m_e Compiles and loads the program.
cclleeaann Removes all ..oo files.
cclloobbbbeerr Executes clean and then removes the executable
files.
vvooiidd Removes everything created by the ffttnnmmggeenn utility.
NNOOTTEESS
ffttnnmmggeenn uses the ffttnnsspplliitt utility to split files and to provide module
and include file dependency analysis.
ffttnnmmggeenn module dependency analysis can go only one level deep. That
is, if A uses B, which in turn uses C, then a make dependency only
between A and B can be planted. This allows for showing dependencies
between B and C but is not sufficient to allow A to show dependencies
on B and C.
EEXXAAMMPPLLEESS
The following example shows how to specify that the ff9900 command in the
mmaakkeeffiillee uses the --II....// and --vv flags when compiling the Fortran source
code files:
ftnmgen -f '-I../ -v' fort1.f fort2.f fort3.f
The following command line and code fragments illustrate dependency
rules:
ftnmgen -a file.f harry.f
ffiillee..ff is:
program fred
use harry
include "jim.h"
...
end program fred
hhaarrrryy..oo is:
module harry
...
end module harry
creates a makefile containing the following rules:
_f_i_l_e.o: harry.o
_f_i_l_e.o: jim.h
In this example, if you had not specified hhaarrrryy..ff on the ffttnnmmggeenn
command line, the makefile would display the following message:
_f_i_l_e.o: ** NEED MODULE FILE FOR: harry **
This result would force you to hand edit the makefile.
FFIILLEESS
mmaakkeeffiillee Default mmaakkee file created
aa..oouutt Default executable binary file name
_f_i_l_e.ff[[9900]] Input Fortran source code file
_f_i_l_e.oo Relocatable object code file
SSEEEE AALLSSOO
ff9900(1), ffttnnsspplliitt(1), mmaakkee(1),
This man page is available only online.